//    Copyright (C) Kherty.  All rights reserved.
using System.Windows;

namespace OpenLS.Drawing.UI
{
    class DrawingResourceKey: ResourceKey
    {
        public DrawingResourceKey(DrawingResourceId id)
        {
            this.id = id;
        }

        readonly DrawingResourceId id;
        public override int GetHashCode()
        {
            return id.GetHashCode() + Assembly.GetHashCode();
        }
        public override bool Equals(object obj)
        {
            DrawingResourceKey k = obj as DrawingResourceKey;
            if (k == null)
                return false;
            return id == k.id;
        }
        public override System.Reflection.Assembly Assembly
        {
            get { return GetType().Assembly; }
        }
        public override string ToString()
        {
            return string.Format("{0} {1}", base.ToString(), id);
        }
    }
    enum DrawingResourceId
    {
        ColorComboBoxStyle,
        FillControlTemplate,
        LineFillControlTemplate,
        LineStyleControlTemplate,
    }
}
